/*
---
script: dialog.js
description: ---
license: MIT-style license
authors:
- Christian Merz
requires:
- core:1.3.2/Element.Event
provides: [dialogCME]
...
*/
window.addEvent('domready', function(){

    var dialogCme = new DialogCME({
		'title':'Form Tambah Komoditi',
		'content':"<table>\n\
					<tr>\n\
						<td align='left'><label>Kode Komoditi</label></td><td align='left'><input id='waktu' type='text' size='30' value='A1.1'></td></tr>\n\
					<tr>\n\
						<td align='left'><label>Nama Komoditi</label></td><td align='left'><input type='text' size='30' value='Beras'></td></tr>\n\
					</table>",
		'submit':{
			'exists':true,
			'value':'Simpan',
			'fn': function(e){
				this.hide()
			}
		},		
		'cancel':{
			'exists':true,
			'value':'Batal',
			'fn': function(e){
				this.hide()
			}
		}
		
	});
    
    $('editCommodityType').addEvent('click', function(e){
        e = new Event(e).stop();
        dialogCme.show();
    }
	
.bind(this));
});